import { GFCD } from '@/utils/utils'
import { getList } from '../api/home'
export default function publicFn(method, data) {
  return new Promise((resolve, reject) => {
    let configSetting = GFCD('bqms')
    getList(`${configSetting.domain}${configSetting.baseUrl}`, {
      method: method,
      data: JSON.stringify(data),
    })
      .then((res) => {
        resolve(res)
      })
      .catch((e) => {
        reject(e)
      })
  })
}
